package cn.wolfcode.mapper;

import cn.wolfcode.domain.ActivityItem;
import cn.wolfcode.qo.QueryObject;

import java.util.List;

public interface ActivityItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ActivityItem record);

    ActivityItem selectByPrimaryKey(Long id);

    List<ActivityItem> selectAll();
    //投票数量加1
    int updateById(Long radioId);

    List<ActivityItem> selectForList(QueryObject qo);
    //通过投票活动id查询到对应的选项集合
    List<ActivityItem> selectByAid(Long id);
}